﻿using DLog.ILog;
using DLog.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DLog.LogManager
{
    public class LogManager: IDisposable
    {
        static ILogger logger;
        public static ILogger GetCurrentClassLogger()
        {
            if (logger == null)
            {
                logger = new Logger();
                logger.Init(DLog.Config.NlogConfig.Target, DLog.Config.NlogConfig.ConnectionString);
            }
            return logger;
        }

        public void Dispose()
        {
            GC.SuppressFinalize(this);
        }
    }
}
